package priv.yiyuan.example.design.facade;

/**
 * 库存服务
 * <p>
 * 外观模式-子系统类
 *
 * @author YiYuan
 * @data 2025/9/12
 * @apoNote
 */
public class InventoryService {

    public void deductStock(String productId, int quantity) {
        System.out.println("库存服务: 成功减扣商品 " + productId + " 数量 " + quantity);
    }

    public void restoreStock(String productId, int quantity) {
        System.out.println("库存服务: 成功恢复商品 " + productId + " 数量 " + quantity);
    }

}
